import Vue from "vue";
import { Store, install } from "vuex";
import banner from "./banner";
import setting from "./setting";
import about from "./about";
import project from "./project";

//有Vuex说明是传统引用（cdn）,没有则代表是第三方库引用
if (!window.Vuex) {
	install(Vue);
}

export default new Store({
	modules: { banner, setting, about, project },
	strict: true,
});
